]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
keyboard: Drop GDK API usage
authorCarlos Garnacho <carlosg@gnome.org>
Mon, 26 Nov 2018 12:39:57 +0000 (13:39 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Wed, 30 Jan 2019 21:50:01 +0000 (22:50 +0100)
Use the misnamed but equivalent Clutter function.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/317

js/ui/keyboard.js

index a304670067ed17d15263c22afad9807d28552ab9..a5732636177b459e26a64c582d73ad3efbe3ea27 100644 (file)
@@ -2,7 +2,6 @@
 
 const Atspi = imports.gi.Atspi;
 const Clutter = imports.gi.Clutter;
-const Gdk = imports.gi.Gdk;
 const Gio = imports.gi.Gio;
 const GLib = imports.gi.GLib;
 const GObject = imports.gi.GObject;
@@ -280,7 +279,7 @@ var Key = class Key {
 
     _getKeyval(key) {
         let unicode = String.charCodeAt(key, 0);
-        return Gdk.unicode_to_keyval(unicode);
+        return Clutter.unicode_to_keysym(unicode);
     }
 
     _press(key) {